package com.tanhua.server.impl;

import com.tanhua.dubbo.api.UserApi;
import com.tanhua.interceptor.UserHolder;
import com.tanhua.model.vo.HuanXinUserVo;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class HuanXinService {
    @DubboReference
    private UserApi userApi;

    //查看环信用户账号密码
    public HuanXinUserVo findHuanXinUser() {
        Long userId = UserHolder.getUserId();
        HuanXinUserVo huanXinUserVo = userApi.findHuanXinUser(userId);
        return huanXinUserVo;
    }
}
